using ScFramework.Utilities;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UnityEngine.SceneManagement;
using Random = UnityEngine.Random;
using System.Reflection;
using System.IO;
using System.Globalization;

namespace ScFramework.Core
{
    public class Data : SystemModule
    {

        #region 读表类函数,基层轮子

        private readonly TableAgent _tableAgent = new TableAgent();

        public TableAgent Table
        {
            get { return _tableAgent; }
        }

        public void SetTableAgent()
        {
            var list = _main.Get<ResourceManager>().LoadAll<TextAsset>("Text/Table/");
            for (int i = 0; i < list.Length; i++)
            {
                _tableAgent.Add(list[i].text);
            }
        }
        #endregion

        public override void Initialize(Main m)
        {
            base.Initialize(m);
            SetTableAgent();
        }

        public override void Update(float deltaTime)
        {
            //   throw new NotImplementedException();
        }

        public override void FixedUpdate(float deltaTime)
        {
            //     throw new NotImplementedException();
        }

        public override void Dispose()
        {
            //    throw new NotImplementedException();
        }


    }
}